package com.bhms.module.users.org.action;

import java.util.ArrayList;
import java.util.List;

import com.bhms.module.users.org.mapper.Group;
import com.bhms.module.users.org.service.GroupService;
import com.sunshulin.common.action.GeneralAction;

/**
 * 系统职能组织机构管理action
 * 
 * @author 孙树林
 * 
 */
public class GroupAction extends GeneralAction {

	private static final long serialVersionUID = -5863047103742395447L;

	private GroupService groupService;

	private Group groups = new Group();

	private List<Group> groupList = new ArrayList<Group>();

	/**
	 * 查询，显示系统职能组织机构列表
	 * 
	 * @return
	 */
	public String groupList() {
		page(groups);
		groupList = groupService.searchGroup(groups);
		return SUCCESS;
	}

	public Group getGroups() {
		return groups;
	}

	public void setGroups(Group groups) {
		this.groups = groups;
	}

	public List<Group> getGroupList() {
		return groupList;
	}

	public void setGroupList(List<Group> groupList) {
		this.groupList = groupList;
	}

	public void setGroupService(GroupService groupService) {
		this.groupService = groupService;
	}
}
